/**
 *******************************************************************************
 * @FileName  : tlsr825x_wdg.h
 * @Author    : GaoQiu
 * @CreateDate: 2020-09-10
 * @Copyright : Copyright(C) GaoQiu
 *              All Rights Reserved.
 *
 *******************************************************************************
 *
 * The information contained herein is confidential and proprietary property of
 * GaoQiu and is available under the terms of Commercial License Agreement
 * between GaoQiu and the licensee in separate contract or the terms described
 * here-in.
 *
 * This heading MUST NOT be removed from this file.
 *
 * Licensees are granted free, non-transferable use of the information in this
 * file under Mutual Non-Disclosure Agreement. NO WARRENTY of ANY KIND is provided.
 *
 *******************************************************************************
 */
#ifndef TLSR825X_WDG_H_
#define TLSR825X_WDG_H_

#include "tlsr825x.h"

/******************************************************************************/
/*                                                                            */
/*  !!! Watchdog and timer 2 cannot be used at the same time                  */
/*                                                                            */
/******************************************************************************/

/**
 * @brief : Watchdog initialization.
 * @param : periodMs            the period of watchdog.
 * @param : sysClkFreq_MHz      system clock frequecy.
 * @return: none.
 */
void WDG_Init(uint32_t periodMs, uint32_t sysClkFreq_MHz);

/**
 * @brief : Watchdog enable/disable.
 * @param : enable       can be true/false.
 * @return: none.
 */
void WDG_Cmd(bool_t enable);

/**
 * @brief : Watchdog feed dog.
 * @param : none.
 * @return: none.
 */
void WDG_FeedDog(void);


#endif /* TLSR825X_WDG_H_ */
